﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Drawing;
using ProductQR;



public partial class student_information0 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Session["w"] = 16000001;//把网报号传过来即可，我这里只是做个试验
        if (Session["wbh"] != null)
        {
            QR qr = new QR();
            Bitmap bm = qr.BarcodeImage(Session["wbh"].ToString().Trim());
            string filename = Session["w"].ToString();
            bm.Save(Server.MapPath("~/QR/") + filename + ".jpg");//存到自己的QR文件夹下，QR只是个文件夹名,jpg,png都可以
            this.Image3.ImageUrl = "~/QR/" + filename + ".jpg";//然后再用image控件引入上
        }

    }
}